Skip to content

Conversation

@kkaris
Copy link
Contributor

@kkaris kkaris commented Mar 19, 2025

Summary

Resolves #369.

This PR updates antibodyregistry to use their API. The API requires login, which is now handled by httpx. After a login sequence that uses personal login information, the API can be used to download all the data.

The previous implementation of this API was broken by updates from the maintainers of the data.

Issue: Slow Download

The current implementation takes ~3 hours. We should consider running concurrent requests to speed this up if 3 hours is unacceptable.

@codecov
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 15.65217% with 97 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@fc140cc). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/pyobo/sources/antibodyregistry.py 15.65% 97 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #373   +/-   ##
=======================================
  Coverage        ?   53.04%           
=======================================
  Files           ?      176           
  Lines           ?    11821           
  Branches        ?     1834           
=======================================
  Hits            ?     6271           
  Misses          ?     5312           
  Partials        ?      238           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kkaris
Copy link
Contributor Author

kkaris commented Mar 20, 2025

I know there are things to fix in terms of tests and formatting, which I will get back to, but I'm happy to get feedback on the implementation at this point.

Co-authored-by: Mike Anselmi <[email protected]>
@kkaris
Copy link
Contributor Author

kkaris commented Mar 20, 2025

OK, I keep getting

RemoteProtocolError: <ConnectionTerminated error_code:0, last_stream_id:169, additional_data:None>

after about an hour when trying to get the full data. I might want to add some retry logic and/or caching of parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

antibodyregistry error and data column update

2 participants